package com.github.shiqiyue.learn.design.pattern.factory.simple;

import com.github.shiqiyue.learn.design.pattern.factory.Item;

/***
 *
 * @author wenyao.wu
 * @date 2019/2/12
 */
public class Main {

    public static void main(String[] args) {
        Item apple = SimpleFactory.get("apple");
        Item orange = SimpleFactory.get("orange");
        Item baoma = SimpleFactory.get("baoma");
        Item bengchi = SimpleFactory.get("bengchi");
        apple.print();
        orange.print();
        baoma.print();
        bengchi.print();
    }
}
